package wt.entity.expertInfo;

import org.springframework.format.annotation.DateTimeFormat;
import wt.auto.entity._ExpertCertificate;
import wt.entity.dictionary.CertificateType;
import wt.entity.dictionary.ItemType;

import java.util.Date;

public class ExpertCertificate extends _ExpertCertificate implements BaseExpertInfo {

    private CertificateType    certificateType;
    private  ExpertCertificate expertCertificate;

    private ExpertBase expertBase;
    private ItemType itemType;

    public CertificateType getCertificateType() {
        return certificateType;
    }

    public void setCertificateType(CertificateType certificateType) {
        this.certificateType = certificateType;
    }

    public ExpertBase getExpertBase() {
        return expertBase;
    }

    public void setExpertBase(ExpertBase expertBase) {
        this.expertBase = expertBase;
    }

    public ExpertCertificate getExpertCertificate() {
        return expertCertificate;
    }

    public void setExpertCertificate(ExpertCertificate expertCertificate) {
        this.expertCertificate = expertCertificate;
    }

    public ItemType getItemType() {
        return itemType;
    }

    public void setItemType(ItemType itemType) {
        this.itemType = itemType;
    }

    @Override
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public void setStartTime( Date startTime) {
        super.setStartTime(startTime);
    }

    @Override
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    public void setEndTime( Date endTime) {
        super.setEndTime(endTime);
    }

}